﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CSVQMDResonance.aspx.cs" Inherits="FileConverter.LAB.CSVQMDResonance" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
    <section class="featured" style="font-family: 微软雅黑">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>.</h1>
                <h2>共振文件格式转换</h2>
            </hgroup>
            <p>
               共振文件转换标准输入、输出文件格式 <a href="../Help/EDW data Summary format.csv">原始文件SummaryData</a>&nbsp;
                                    <a href="../Help/Raw data.zip">原始文件RawData</a>&nbsp;
                                    <a href="../Help/down.zip">输出文件</a>
               
            </p>
        </div>
    </section>    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        function showhidediv(){  
            var div=document.getElementById("Rename");  
            if (div == 'Rename') {
                div.style.display='block';  
            }
            else {
                div.style.display = 'none';
            }  
        } 
    </script>
    <section style="width:100%; margin: 0 auto;">
        <header>
            <div style="float:left; width:25%; padding-left:20px;height:60px">
                <asp:RadioButton ID="RB_QPM" Text=" HookUP QPM" runat="server" Checked="true" GroupName="HookUP"  AutoPostBack="true" OnCheckedChanged="RB_QPM_CheckedChanged"/><br/>
                <asp:RadioButton ID="RB_SQPM" Text=" HookUP Spec QPM" runat="server" Checked="false" GroupName="HookUP" AutoPostBack="true" /></div>
            <div style="float:right; width:70%; padding-right:20px; height:60px">
                <asp:FileUpload ID="FileUpload_HookUPQPM" runat="server" Width="50%" /><asp:Label ID="Label_QDM" runat="server" Text="Label" style="display:none"></asp:Label>
                <asp:Button ID="ImportCSVQPM" runat="server" Text="导入CSV文件" OnClick="ImportCSVQPM_Click" Height="32px" Width="20%" />
                <asp:Button ID="CreatefileQPM" runat="server" Text="TXT文件转换" OnClick="CreatefileQPM_Click" Height="32px" Width="20%" /></div>
            <div ID="Rename" runat="server" style="margin: 0 auto; text-align:center">
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> __
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> __
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> __
                <asp:TextBox ID="TextBox4" runat="server" OnTextChanged="TextBox_Enter" AutoPostBack="true" OnInit="TextBox_Enter"></asp:TextBox> .TXT</div>
        </header>
        <article  style="margin:0 auto; width:100%">
            <div style="float:left; width:35%; overflow-x:scroll; padding-left:20px">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowEditing ="GridView1_RowEditing" EmptyDataText="Data Is Empty" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="Parameter" HeaderText="参数" />
                        <asp:BoundField DataField="Value" HeaderText="参数值" />
                        <asp:CommandField ShowEditButton="True"  />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </div>
            <div style="float:right; width:60%; overflow-x:scroll; padding-right:20px">
                <asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" >
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </div>
        </article>
    </section>
</asp:Content>